import axios from 'axios'
const instance = axios.create({
  baseURL:'http://127.0.0.1:8888/v1/users',
  timeout:5000
});
instance.interceptors.request.use(config=>{
  console.log('config:',config);
  return config
},err=>{
  return Promise.reject(err)
})
instance.interceptors.response.use(res=>{
  console.log(res)
  return res.data
},err=>{
  return Promise.reject(err)
})
export default instance